package com.lgx.mall.core.service;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.mall.core.entity.Brand;

/**
 * 
 * @author yry
 *
 */
public interface IBrandService {
	public Brand createBrand(Brand brand)throws DataException;
	public Brand updateBrand(Brand brand)throws DataException;
	public void deleteBrand(Brand brand)throws DataException;
	public void deleteBrand(long id)throws DataException;
	
	public Brand findBrandById(long id);
	
	public List<Brand> findBrandList(String sql);
	public List<Brand> findBrandList();
	
	public List<Brand> findBrandList(String sql,Object[] params,int pageSize,int pageNum);
	public Pagination findBrandPagination(String sql,Object[] params,int pageSize,int pageNum);
	public Pagination findBrandPagination(Object[] params,int pageSize,int pageNum);
	
	public void deleteBrands(String[] ids);
	public List<Brand> findBrandByName(String name);
}
